package org.ichow.scenegame.notis
{
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import org.ichow.scenegame.events.NotiEvent;

	/**
	 * ...
	 * @author M.ichow
	 */
	public class StartNoti extends BaseNoti
	{

		public function StartNoti()
		{
			super();
		}

		override protected function addListeners() : void
		{
			super.addListeners();
			if ( !_noti.hasEventListener( MouseEvent.MOUSE_UP ) )
				_noti.addEventListener( MouseEvent.MOUSE_UP , onStartMouseClick );
		}

		/**
		 * 开始按钮
		 * @param	e
		 */
		private function onStartMouseClick( e : MouseEvent ) : void
		{
			var evt:NotiEvent = new NotiEvent(NotiEvent.NOTI_CHANGE);
			evt.status = NotiEvent.READY;
			dispatchEvent( evt );
			cancel();
		}
	}

}